<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/uploadeFile/css/common.css}"  rel="stylesheet"/>
<link  th:href="@{/uploadeFile/css/index.css}"   rel="stylesheet"/>
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<input type="hidden" value="/uploadeFile"  id="staticUrl" >
        <form class="form-horizontal m" id="form-product-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">logo：</label>
				<div class="col-sm-8">
					<!--<input id="logo" name="logo" class="form-control" type="text">-->
					<section class=" img-section" data-limit="1">
						<input type="hidden" id="photo" name="logo" class="getvalue" value="">
						<p class="up-p"><span class="up-span">最多可以上传1张图片</span></p>
						<div class="z_photo upimg-div clear" >
							<section class="z_file fl">
								<img th:src="@{/uploadeFile/img/a11.png}"  class="add-img">
								<input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple />
							</section>
						</div>
					</section>
					<aside class="mask works-mask">
						<div class="mask-content">
							<p class="del-p ">您确定要删除吗？</p>
							<p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
						</div>
					</aside>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品名称：</label>
				<div class="col-sm-8">
					<input id="title" name="title" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品类型：</label>
				<div class="col-sm-8">
					<select id="type" name="type" class="form-control m-b" th:with="type=${@dict.getType('product_type')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
					<!--<input id="type" name="type" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品内容：</label>
				<div class="col-sm-8">
					<input id="content" name="content" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
	<script  th:src="@{/uploadeFile/js/imgUp.js}"></script>
    <script type="text/javascript">
		var prefix = ctx + "beautyflower/product"
		$("#form-product-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/add", $('#form-product-add').serialize());
			}
		});
	</script>
</body>
</html>
